Repository navigation
fix(desktop): say "serving" everywhere for starting and stopping this Mac - #1501
Merged
jonathan308 merged 1 commit intoOct 15, 2026
Merged
Conversation
… Mac The same act had four names. Home offered "Start providing" and "Stop provider", This Mac's header "Start provider", the menu bar "Start provider" / "Restart provider" under a raw "Darkbloom — running" status, and onboarding "Start serving with Autopilot", while Updates said "Keep contributing", Settings "Keep providing in the background" and the onboarding mode choice "Contribute to Darkbloom". Converge on onboarding's verb: Start serving, Stop serving and Restart serving on Home, This Mac, Overview next steps, Updates and the menu bar; operations read "Starting to serve" / "Stop serving · Complete"; the menu bar status is Serving, Stopped, Starting…, Finishing requests or Connecting…. "Provider" stays only as the role noun (provider version, automatic provider updates, the Leaderboard's Provider column). Action ids, data fields and contract types are unchanged. The tray menu template moves into trayMenu.ts so it can be tested, and a new test renders Home, This Mac's header and the tray template and scans src for the retired wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
jonathan308
had a problem deploying
to
benchmarks
October 15, 2026 04:41 — with
GitHub Actions
Error
This was referenced Oct 15, 2026
Merged
jonathan308
merged commit Oct 15, 2026
a86ef90
into
codex/desktop-mac-preview-20261012
20 of 22 checks passed
jonathan308
added a commit
that referenced
this pull request
Oct 15, 2026
Gajesh2007
added a commit
that referenced
this pull request
Oct 23, 2026
…wift CLI (#1518) * feat(desktop): add Electron frontend for the Swift CLI * fix(desktop): wait for operation cancellation to finish * fix(coordinator): rate-limit and cache the desktop projection per account GET /v1/provider/desktop was registered without request bookkeeping or a rate limit, and its 20 s cache key included the client-controlled X-Darkbloom-Device-Identity header, so a token holder could bypass the cache and force a full registry walk plus per-machine earnings queries on every request. - Authenticate through requireDesktopProviderToken: active, account-linked provider tokens only, checked on every request before the cache, with outcome-stage and auth stamping. - Apply the per-account limiter via rateLimitDesktop (429 + Retry-After). - Cache one typed projection per account and compute is_this_mac per request on a copy; the SE key stays unexported and out of the JSON. - Document the route, auth label and limiter in api-contracts.md. * fix(desktop): harden login launch, update feed, tray and runtime repair - Start hidden at login on macOS: login-item args are Windows-only in Electron 44, so honor app.getLoginItemSettings().wasOpenedAtLogin as well as --hidden. - Stop consuming provider releases as GUI updates. The build config moves to electron-builder.ts and emits a generic feed only when DARKBLOOM_DESKTOP_UPDATE_URL is set (publish: null otherwise, so no GitHub feed is inferred). At runtime the updater is used only when the embedded app-update.yml declares a generic https feed; otherwise the Updates screen reports an explicit "unconfigured" state. - Rebuild the tray menu only when its visible model changes; Start reads the latest snapshot at click time. - Fetch cooling status only while the Cooling screen is shown. - Verify the installed runtime's signature before repair runs its update, drop the unused CI=1 installer env, and allow 90 s for desktop ensure. - Trigger the Desktop App workflow on scripts/install.sh changes. - Split main/index.ts into focused modules (security, protocol, window, ipc, tray, updates, login launch, lifecycle); renderer trust checks live in electron-free security.ts with unit tests. * fix(provider): keep the desktop API current, removable and well-behaved - desktop ensure now goes through ProviderCore launchctl wrappers and a pure decision function (DesktopService.nextStep): install when not loaded, bootout/rewrite/bootstrap when the plist differs, kickstart when the API is unresponsive or reports another version. At most one restart per run, never during a running operation (the API owns its children's output pipes), and an HTTP error with an unchanged plist fails fast. The plist adds ExitTimeOut and an absolute --config path. - The API records its executable stamp at startup and exits when the binary is replaced and no operation is running, so launchd relaunches the new build after terminal, self-update or repair updates. - stop --uninstall also boots out and deletes io.darkbloom.desktop-api. - Pass --config to restart and desktop stop-local/restart-local (switch, stop and logout do not accept it); every generated argv is parsed in tests. - Map HTTP errors: validation 400 verbatim, malformed bodies 400, unknown resource 404, oversized body 413, stream limit 429, coordinator 502 and internal 500 with fixed text. - Share one cooling status read with a 10 s cache, cleared when a cooling change finishes. - Document ensure/restart semantics, uninstall and status codes; update the desktop changelog entry. * feat(desktop): add live activity, token milestones and earnings insights * fix(desktop): stop live indicators with the provider * feat(desktop): add hover feedback to every interactive control Buttons, links, cards, chips, rows and form controls now respond to the pointer in both themes, using a shared --hover-duration: - Buttons tint and brighten their border; primary gains a soft glow, quiet brightens its text, danger deepens. Disabled controls no longer tint or press. - Text links and setting-link cards nudge their arrow; filter chips, serving-mode cards, onboarding choices, schedule days, table rows, the profile button and the appearance menu tint or brighten. - Selects and text inputs strengthen their border. Rows wrapping native checkboxes, switches and sliders brighten the control and description, and show a not-allowed cursor when the control is disabled. - Notice and dialog close icons get a halo without shifting layout. - Selected and active items keep their look under the pointer. * feat(desktop): accept the terms by turning on instead of a checkbox The final onboarding step no longer requires ticking "I agree to the Terms of Service" before Start is enabled. A note under the start action reads "By turning on, you agree to our Terms of Service", linking to the terms page. * feat(desktop): combine focused sidebar with reference leaderboard * feat(desktop): clarify updates and add sidebar social links * feat(desktop): organize My Macs around local controls and view-only fleet * feat(desktop): preview live Stats and a single-screen contribution home * feat(desktop): choreograph request particles around model cores * feat(provider): sample real chip load for the desktop API Add the DarkbloomHardwareLoad library and expose it on the loopback desktop control API so the desktop chip view shows real machine load instead of a simulation. - GET /control/v1/hardware returns chip topology (CPU tiers and clusters from hw.perflevelN and the device tree, GPU core groups, ANE presence, memory) plus the latest whole-machine sample; /hardware/events streams one sample per SSE frame at 1 Hz and shares the eight-stream limit. - Public counters: per-CPU busy fraction, GPU utilization and the provider's share of GPU time, ANE activity, memory use and pressure, thermal state. IOReport (bound at runtime) adds GPU/ANE power, GPU frequency and DRAM/ANE bandwidth estimates, each tagged measured/estimated/pending/unavailable. - Sampling is demand-driven (only while a stream is open or for 10 s after), costs about 3 ms of CPU per sample, needs no root or helper, and never leaves the machine: nothing is logged, heartbeated or sent to the coordinator. Unknown values are null, never zero. - darkbloom doctor --hardware prints the same document for diagnosis. - Documented in the desktop-control reference and CLI reference, with route and sampler tests. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(desktop): chip anatomy home, autopilot-first models, onboarding scan and live hardware Redesign the desktop app around the Mac itself and wire it to real load. - Home: an animated chip anatomy (blueprint by default, optional photoreal) laid out from the real topology (CPU tiers and clusters, GPU core groups, Neural Engine, unified memory). It is driven by the new hardware stream via a main-process SSE watcher and IPC subscription that stops when no view listens, with reduced-motion support. Fleet summary, earnings and network milestone cards sit beside it. - Models: autopilot-first page (on, shadow, off, unsupported) with a manual pool, model facts and a preview fixture. - Onboarding: a hardware eligibility scan, waitlist, account linking, serving summary and advanced options, split into focused components. - Machines, stats, cooling, updates, settings and leaderboard reworked into feature modules (request activity, token bars, request curve, performance, release timeline, network map geography). - Shared formatters (count, timeOfDay, clockTime, bigint compact), one SSE frame parser for state and hardware streams, and one preview topology (64 GB M4 Max) as the source of truth for all preview fixtures. - Dead modules removed (System, Contribution, ActivityChart, the old Models, FleetOverview and MachineOverview); dark-mode and warning tokens unified. - README gains a "Run it locally" guide for the preview, the Electron window and attaching to an isolated real runtime. - 51 test files / 366 tests, including a real-HTTP watch() test and a fixture-agreement test for the hardware load document. Co-authored-by: Cursor <cursoragent@cursor.com> * docs(desktop): document the redesigned desktop app - docs/developer/desktop-app.md: module map for the chip home, models autopilot, onboarding scan, hardware watcher (hardware.ts, sse.ts) and preview fixtures, including the shared preview topology and the preview query parameters; freshness stamp refreshed. - CHANGELOG.md: the desktop Unreleased section is updated in place for the chip anatomy home, live hardware load, autopilot-first models and the onboarding scan. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(desktop): integrate live usage, earnings and shared Swift account backend Simplify Home and live chip activity, preserve exact session usage, rank models by earnings, improve Mac Stats and cooling recovery, and reuse existing coordinator APIs through scoped native caches and read-only dashboard sessions. Include native, UI, API and store regression tests and canonical documentation. * feat(desktop): make models Autopilot-first and polish account, cooling and notifications * Add signed local desktop preview packaging * Resolve preview signing identity by certificate fingerprint * fix(desktop): open each page and Mac at the top The document is the desktop window's scroll container, and route or Mac changes never reset it. Following View earnings or Explore Stats from lower on Home, switching Macs, or changing My Macs tabs kept the previous scroll offset and hid the new page's header and tabs. Reset the document scroll position in a layout effect whenever the route or selected Mac changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): chart this session's completed requests in Stats The native desktop API reports this session's local request history with completed_at only (DesktopRequestHistory.swift). recordedTraffic bucketed by settled_at ?? started_at, so every local record produced a NaN bucket and an empty series. Because history existed, Performance did not fall back to observed samples and hid the traffic chart entirely on a serving Mac. Bucket with the shared requestTime helper (settled, completed, started) and label local history as completed rather than settled requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): load release data for update status and keep native history The native release-history resource is synthesized from the latest release and carries no minimum_provider_version until the coordinator's desktop release feed is deployed (DesktopResources.swift). parseReleaseHistory rejected any history without that floor, so Updates always showed history and support policy as unavailable with the real API. Accept a missing or null floor as unknown while still rejecting malformed values; the contract already marks it optional. This Mac's Overview readiness compares the runtime with the latest release and floor, but the machines route only requested cloud data. A runtime below the floor therefore read "a compatible update isn't available yet" with no Update now action unless Updates had been visited earlier. Request release and release-history on that route. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(desktop): keep the preview signer test valid on Linux CI The desktop frontend job runs npm test on Ubuntu, where /usr/bin/codesign does not exist. Backend.connect() then fails verification with ENOENT and reports the runtime as missing, so the assertion that the unsigned preview backend yields state 'error' failed on every CI run after the preview packaging commit. Assert the platform's outcome while keeping the security assertions on every platform: the unsigned binary is never executed (no connection.json) and installing over the bundled API is still rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): show returning users a connecting state on cold launch App rendered first-run Onboarding whenever no snapshot had arrived yet, even when onboarding was already complete. Every cold launch therefore flashed Welcome ("Put this Mac to work." / Start) for as long as the runtime took to answer (up to the 90-second ensure or 30-second preview startup bounds), and stayed there when the runtime was unreachable, so returning users had to press Start to reach Install/Repair. Render a Startup view for returning users: the onboarding brand shell with the connection status, or RuntimeSetup when the runtime is missing, incompatible or failing. First-run onboarding is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): recover the preview API after a crash and keep its errors The preview spawns `darkbloom desktop serve`, which holds an exclusive flock on service.lock and does not exit when its parent dies. After a GUI crash or force quit, every relaunch spawned an API that exited with "Desktop API is already running"; start() only accepts a discovery record with the new child's pid, so ensure() failed every time, watch() retried every five seconds, and Repair could not help. Electron's single-instance lock means no other preview app owns the preview directory, so an API still recorded there was left by an earlier app process. Before spawning, stop the recorded pid only while ps shows it is exactly this bundled binary running `desktop serve`, guarding against pid reuse. The child's stdio was ignored, so the API's own stderr (lock, discovery and runtime-resolution failures) was lost and the user only saw a generic message. Keep a bounded stderr tail, include its last line in a PreviewStartError, and surface that in the backend status the runtime setup screen already displays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): confirm eligible Macs on a fresh install Onboarding derives eligibility because the runtime sends no report. DesktopSnapshot.swift fills memory_gb only for downloaded models (local?.estimatedMemoryGb), so on a fresh install no model reported a memory need, the memory check stayed unevaluated, and every Mac, including a 128 GB M4 Max, got "We couldn't confirm everything". Use memory_gb || size_gb as a model's need, matching the runtime's own fit check (modelFitsBudget uses the catalog size for models not yet downloaded). Models the runtime accepts set the bar. When it accepts none, memory fails only if every reported model needs more than the Mac's total memory; otherwise the result stays unknown rather than reimplementing the runtime's load allowance. Make the 8 GB fixture match what the runtime reports (the model that does not fit is not eligible), and model the preview's unknown scenario as a runtime that has not loaded the catalog yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): keep incompatible runtimes disconnected Backend.connect() stored the discovered connection before checking the initial snapshot's protocol. When the check failed it set an error status but kept the connection, so watch() opened /events about 250 ms later, reported the runtime as ready, and forwarded every streamed snapshot without any protocol check. Clear the connection whenever connect() fails, and validate every snapshot, initial or streamed, with one compatibility check. A stream that changes protocol now drops the connection and reconnects through the checked path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): ask signed-out Macs to sign in instead of loading earnings useInsights reads earnings only while the account is signed in or has legacy data, but Earnings, Home's fleet chart and the Models earnings order chose their message from `linked`. Signing out, or the dashboard session expiring after 30 days, clears the session without clearing the provider link, so those views showed "Loading…" forever with no retry. Expose whether insights can load from the hook and show a sign-in prompt when a linked Mac cannot read them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): guard model actions against double submits and no-ops Model actions set the row's working label only after awaiting a fresh state read, and controls lock only once that label exists, so a quick second click on Keep in memory or Add to pool sent the action twice. For Add to pool, each duplicate refreshes the pool and drains and restarts the runtime. Set the label before any await and ignore re-entry while a task for the same model or policy runs. Before Autopilot was set up (configured: false), Add to pool returned silently because Autopilot was not enabled. It now turns Autopilot on with the turn-on models plus that model, as Keep in memory already does; Download stays download-only. Turn on Autopilot only checked its own label and stayed enabled while another operation ran. Disable it while the app or a model action is busy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): show stale cooling as unavailable and submit the shown threshold The Cooling page header switched to "Fan status unavailable" for readings older than 60 seconds, but the page still showed the old GPU temperature, RPM, "Spinning" and a turning fan glyph, contradicting both its header and Home's fan indicator. Share the staleness rule and hide stale values. The threshold select only offered 5 °C presets. A threshold set from the CLI between them (for example 52) left the select displaying 40 °C while Enable provider cooling submitted 52. Offer the configured value as its own option. The native action decodes speed and temperature as whole numbers within 60-90 and 40-90, so round and clamp CLI-set values that would otherwise be rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): match Studio's example to the served model and hide stale keys Studio defaulted its model to the first downloaded eligible model and ignored endpoint.models. When the endpoint served another model, the copied curl example named a model the endpoint does not serve, and Apply serving mode would restart onto that model. Default to the served model and keep the example on a served model. A revealed key stayed on screen after the endpoint stopped, with Hide disabled. Treat the key as part of the running endpoint and keep Hide available. Copy and key reads had no error handling, so a failure was an unhandled rejection and "Copied" could appear; report them instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): report view-only Macs' real status and unavailable totals The remote overview's status pill mapped every status outside running/online/serving to "Offline", so a Mac that was starting, draining, idle or awaiting verification read as offline while the rail and Home table showed its real status. Use the shared machine status label whenever the Mac is not online. Tokens served added missing input or cached input as zero, so a partial breakdown undercounted the total while those tiles showed "—". Show the total only when every part is reported. Without an observation time the status read "Last observed not observed", and the hourly chart was anchored to the current hour, an alignment the data does not support. For older observations the open hour's range lowercased the whole date ("oct 10, 2:47 pm"). Say "Not observed yet", hide the unanchored chart, and lowercase only "now". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): stop rounding milestones, empty charts and unknown memory into false values Home's network strip rounded both the total (compact notation) and the lit cells, so a total just short of a milestone, such as 999,960,000 or 999,999,999,999, read "1B" beside "Next milestone 1B" with all 24 cells lit, aria-valuenow 100 and "1B of a proposed 1B tokens". Round the total down toward the milestone and cap progress below completion; ordinary values keep their existing rounding. EarningsTimeline scales bars against maximum(), which floors at 1 to avoid dividing by zero; an all-zero period therefore labeled its axis "$0.000001" (or "1" for requests and tokens). Leave the scale unlabeled when every available day is zero. The runtime reports total memory 0 when it cannot detect the Mac's memory. This Mac's Overview showed "0.0 GB total" and Home's memory legend "0 GB", while the machine header already says "Memory unknown". Show unknown memory as unknown in both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): keep dialog focus, Escape and Tab working as content changes Modal handled Escape and the Tab trap with a keydown listener on the dialog element. Sign-in replaces its view as the operation advances, so when the focused control (Continue in browser, Cancel) was removed, focus fell to the document body: Escape no longer closed the dialog and Tab reached the page behind it. Handle keys at the document while the dialog is open, pull Tab back into the dialog when focus is outside it, and return focus to the dialog (tabIndex -1, no outline) when its focused control disappears. Include summary, links and textareas in the trap so failure details are reachable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): refresh Leaderboard network totals and tell loading from unavailable The Leaderboard renders NetworkMap from backend.network, but its route only requested the leaderboard resource. The map's totals stayed at the last Home visit while captioned "Refreshes every 30 seconds", and read "Connecting to the network" indefinitely if Home had not loaded them. Request network on the Leaderboard route too. Rankings started as an empty list, so the page said "Leaderboard unavailable" before the first read settled, and a successful empty response looked like a failure. Start undefined and show loading, empty and unavailable separately. NetworkMap called a failed first read "Last known totals · reconnecting" next to dashes; say statistics are unavailable instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): keep manual model selection to models still on disk With Autopilot off, a chosen model that was not serving could be removed. It stayed in the selection, its checkbox checked but disabled so it could not be cleared, the footer still counted it, and Apply selection sent a switch naming a model no longer on disk. Keep only downloaded models in the selection. The memory bar drew unreported active memory as 0% and an unknown total as "0.0 GB unified memory"; omit the bar and say memory is unknown. An empty Downloaded or Serving filter said "No models available - Connect to the network to load the model catalog" although the catalog loaded; explain the empty filter instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): readable light/dark contrast and system theme on every screen Several colors only worked in one theme: - Selected schedule days and ::selection used --text-primary on the fixed brand blue, which is dark text in light theme (2.74:1). - Home's fan status and the progress fills used the fixed --blue on dark panels (2.79:1, ~2.4:1); use the theme-aware --accent-brand. - The fan heat warning used 58% lightness in both themes (~1.9:1 on white at 65 °C). Keep the hue inline and choose lightness per theme. - The cooling slider's dark accent made Chromium draw a near-white unfilled track in dark theme. - Off switches were rgba(0,0,0,.18) on white (~1.5:1). - The Macs search input removed its outline with no replacement. The prefers-color-scheme listener lived in the top-bar Appearance control, so onboarding and the startup screen never followed a macOS appearance change. Follow it at startup for every screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): confirm unlinking and don't repeat pending link requests Settings' "Unlink this Mac" sent the unlink action on a single click, unlike Remove model or Turn off Autopilot, which confirm. Add an UnlinkDialog with Keep linked / Unlink this Mac. Home's footer kept "Link account" enabled next to a pending link code and while a link operation ran, so each click started another link request. Hide it once a code exists and disable it while linking or busy, as Settings' button already is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): agree nouns with counts ("1 Mac", "Show 1 more model") Several labels appended a fixed plural to a count: every single-Mac or unlinked user saw "1 Macs" above Home's Mac list, Models offered "Show 1 more models", recommendations said "1 downloads", and the Stats request curve and token-bar descriptions read "1 requests" / "1 tokens". Add a small plural() helper next to count() and use it at each site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): confirm only the Studio value that was copied Studio's base-URL and example copy buttons shared one `copied` flag, so copying the base URL gave no feedback on its own button and switched "Copy example" to "Copied". Track which value was copied and confirm it on that button only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): key Leaderboard rows by rank, not pseudonym Rows were keyed by pseudonym. Two providers with the same pseudonym produced duplicate React keys, which React reports as an error and can use to reuse the wrong row's expanded state. Key by rank and name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): don't offer manual downloads of models this Mac can't run In manual mode the Download button was only disabled while busy, so a model the runtime marks ineligible (for example a 380 GB model on a 64 GB Mac, "Needs 512 GB of unified memory") could still be downloaded. Autopilot's view already treats it as not available. Disable it and show the runtime's reason as the button's tooltip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): save Settings only when changed and the schedule is valid Save changes was enabled on an untouched form, and an enabled weekly schedule with no windows, a window without days, or an empty time was sent anyway. The runtime rejects those in ScheduleConfig.validate(), so the only feedback was a generic failure after the round trip. Track whether the form differs from the saved settings, mirror the runtime's schedule rules in scheduleProblem(), show the first problem under the schedule, and disable Save until it is resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): fit earnings bars, waitlist, activity table and settings at narrow widths - Earnings bar buttons and Stats traffic hit targets kept the browser's default button padding (1px 6px), shrinking 30-day bars to 4.7 px of a 16.7 px slot at 1024 px wide. - The waitlist confirmation had no overflow-wrap and the onboarding grid used 1fr columns, so a long email widened the page to 972 px in a 940 px window. - The Activity table's 760 px minimum exceeded its 698 px container at 940 px, hiding the Earned column behind an overlay scrollbar. - Each settings section's last row border sat on the next section's top border, drawing a double rule. - timeOfDay used a two-digit hour ("06:39 PM") unlike clockTime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): readable Earnings breakdown labels and a resetting Copied state The Earnings breakdown labeled models by raw id ("gpt-oss-20b") although the catalog names them everywhere else, and its By Mac expander said "Show all N machines" under a "By Mac" toggle. Copy CSV's "Copied" never reset until the period changed, unlike Studio's copy feedback. Use the catalog display name when the settled model is known (falling back to the short id), say "Macs", and reset Copied after 1.6 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): plain-language copy for settings and models kept in memory User-facing text exposed implementation terms: Settings said "Managed by the Swift backend." and "Settings changed in the backend. Reload before saving.", and manual model selection labeled memory "Native load allowance". The Models controls say "Keep in memory", but the pause and turn-off dialogs, the remove tooltip and onboarding said "pin"/"pins". Use the Darkbloom runtime, explain where an outside settings change comes from, and describe pinned models as models kept in memory throughout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): stop dialogs pulling focus back on every refresh Modal's setup effect depended on onClose. Callers (auto-update, Autopilot pause/turn off, remove model, link) pass a new handler on every render, and pages re-render on each state push, so the effect re-ran about every two seconds: its cleanup refocused the opener and its setup focused the first button ("Close dialog"). A keyboard user pressing Enter a moment late closed the dialog instead of choosing an action. Read the latest onClose through a ref and run the setup once per open dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): announce chip state changes, not every five seconds Home's chip put its whole activity summary, including requests in progress, waiting requests, tokens per second and GPU busy, in a polite live region. Those numbers change every second, so usePoliteSummary's five-second throttle let a screen reader re-announce about 20 words every five seconds for as long as Home was open, even with the animation paused or reduced motion on. Announce only the chip's name and state, and keep the detailed summary as screen-reader text outside the live region. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): move focus to the new page heading when navigation removes it App re-keys <main> on each route and Onboarding re-keys its step, so the button that triggered the change (View earnings, Explore Stats, Open a Mac, Manage models, Start, Skip, Check again, Open dashboard) is removed and focus falls to the document body. Keyboard users restart at the top of the window and screen readers announce nothing; document.title is always "Darkbloom". Add useFocusRecovery: after the key changes, if focus was lost, focus the new page's h1 or the onboarding step's h2 (tabindex -1, no outline). Focus that survived, such as a sidebar button, is kept. Name the window after the page heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): draw focus rings inside scrolling tab strip and Mac rows The My Macs tab strip and Home's Mac table scroll horizontally, so the standard focus ring drawn 4px outside each button was clipped: only the right edge showed on "Overview", and Mac rows showed only a top edge. Draw these rings inside the control; the tabs get 4px of padding with a matching negative margin so the labels don't move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): size the menu bar icon like other menu bar icons and add a 2x image scripts/assets.mjs rendered the tray template to fit 20x22 px and only at 1x. The 19x22 image filled the whole 22 pt menu bar, and on Retina displays macOS upscaled the single bitmap, so the Darkbloom item looked larger and blurrier than its neighbors. Render the vector mark at 16 pt on a 16 pt square at 1x and 2x (trayTemplate.png and trayTemplate@2x.png, which Electron's nativeImage picks up automatically), and ship both in dist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(desktop): keep the generated 2x tray image out of Git trayTemplate@2x.png is generated by scripts/assets.mjs like the 1x template, which is already ignored. Ignore it too and drop the copy the previous commit added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): hide tag signature blocks in release notes Provider releases take their changelog from the release tag with `git tag --list --format=%(contents)`, which for a signed tag is the whole message including its signature. Provider 0.9.20's published notes therefore end with a -----BEGIN SSH SIGNATURE----- block, and the Updates timeline rendered each of its lines as a bullet. Remove SSH and PGP signature blocks (terminated or not) before splitting notes into lines, so already-published records display cleanly. The release script is fixed separately so new records stop including it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): report the installed runtime's version and capabilities in the preview In attach-only mode (the signed local preview) the bundled desktop API runs child operations through the installed, vendor-signed runtime, but the snapshot reported the API's own ProviderCore.version. With a 0.9.17 bundled API and an installed 0.9.20 runtime, Updates offered 0.9.20; Update now ran `darkbloom update`, which answered "Already up to date (v0.9.20)", and the offer stayed forever. The released runtime also has no `desktop` command group, so provider cooling (`desktop configure-cooling`) and Studio's local-only serving (`desktop start-local` and friends) failed with "Unknown option '--enabled'" and the runtime's usage text; one user session logged 27 failed cooling attempts. Read the runtime's --version and `desktop --help` once per executable stamp (an update replaces the file and triggers a fresh read). Report that version in the snapshot, reject actions needing a missing desktop subcommand with an explanation, and report cooling control unavailable. Release builds (no attached executable) keep their own version and commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): ignore a stale daemon state file's version The machine's version came from the daemon state file even when that file was left behind by an older provider process that has since exited. Use it only while the file is fresh, like every other daemon field in the snapshot, and otherwise report the runtime's version. The desktop API harness now starts with such a stale file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): keep pool membership out of startup selection Address the reviewed edge cases and add focused regression coverage. Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed. * fix(desktop): invalidate stale endpoint key reveals Address the reviewed edge cases and add focused regression coverage. Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed. * fix(desktop): preserve inline signature text in notes Address the reviewed edge cases and add focused regression coverage. Independent behavior-preserving review completed; focused tests and formatting/type checks passed. No production, provider, or account operations performed. * fix(desktop): restrict focus handling to the active modal Address the reviewed edge cases with regression tests while preserving existing behavior. Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed. * fix(desktop): preserve checked switches and session themes Address the reviewed edge cases with regression tests while preserving existing behavior. Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed. * fix(desktop): restart copy confirmation feedback safely Address the reviewed edge cases with regression tests while preserving existing behavior. Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed. * fix(desktop): keep page titles in sync with rendered content Address the reviewed edge cases with regression tests while preserving existing behavior. Independent behavior-preserving review and parent validation completed. Focused tests, full desktop suites, TypeScript, formatting, docs-impact and whitespace checks passed. Full-tree docs lint remains for CI because the local worktree is sparse. No live app, provider or account operations performed. * fix(desktop): isolate runtime version stdout from diagnostics Read installed-runtime versions from stdout while retaining ordinary command diagnostics. Reject incomplete or oversized probe output and cover warning, replacement and cancellation cases. Independent behavior-preserving review completed. Parent verification passed 15 focused Foundation-only harness tests using the actual worker/profile sources and Swift syntax checks. Full provider-package integration remains a CI check; no live provider or GPU workload was run. * fix(desktop): finish the keep-in-memory wording in onboarding and model actions Onboarding's Advanced options still described the models you choose as "pinned" ("2 pinned · …", "the models you pin"), and the Models page labelled in-progress actions "Pinning…" / "Unpinning…". Use the same keep-in-memory wording as the rest of the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): say "1 request processing" in live activity The live-activity summary printed a fixed plural next to the count, so a single in-flight request read "1 requests processing". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): let dialogs close when clicked over the sidebar or top bar The sidebar and top bar declare -webkit-app-region: drag so the frameless window can be moved. Electron applies drag regions to clicks even under elements stacked above them unless the covering element declares no-drag. The modal backdrop didn't, so a click on the dimmed background over the sidebar or top bar moved the window instead of closing the dialog, and a dialog control over the top bar would not respond. A user reported that the sign-in dialog would not close. Declare no-drag on the full-window modal backdrop, and check in a test that every full-window fixed overlay in the renderer stylesheets does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): match Home's provider button and chip summary to transitional states Home's header treated every state other than 'running' as stopped, so it offered Start providing (which opens Models) while the provider was starting or draining, and a stale provider, whose process is still up, had no Stop button. Offer Stop while running or stale, and show a disabled Starting provider / Finishing requests label during the transitions, as the readiness steps (which treat both as waits) and This Mac's draining label already do. The chip counts running, draining and stale providers as powered, and its screen-reader summary said "live activity" for all of them, even when no live numbers were shown, ending with a stray space. Say live activity only while numbers are current; otherwise name the reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): show stale fan readings as unavailable on This Mac's overview The overview's Fans cell ignored cooling.observed_at, so a reading five minutes old still showed "Spinning · 4,100 RPM", a turning fan glyph and the GPU temperature as current. Home's fan button and the Cooling status already treat readings older than 60 seconds as unavailable. Move that rule into a coolingStale() helper in cooling/status.ts, use it in coolingStatus(), Home's FanStatus and the overview's FanHealth, and show the Fans cell as unavailable, without temperature, when it applies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): say when model slots, not memory, block Keep in memory pinnedMemory().exceeds combined two limits: the pinned models' memory against the load budget, and their count against max_model_slots. The Models page always explained a blocked Keep in memory control with the memory message, so with max_model_slots = 2 and two models kept, a third model read "Pinning this needs more memory than this Mac has." although the three need 45 of 64 GB. Onboarding's pin summary said the same. Report which limit is exceeded (limit: 'memory' | 'slots') and word each reason separately; exceeds still blocks both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): lock manual model actions while Autopilot turns on With Autopilot off, Models shows the manual selection together with the Turn on Autopilot offer. Turning on runs as a model action (useModelActions' policy), whose "Turning on…" label lives in actions.working, but ManualModels only checked backend.busy. That stays false until the runtime reports the operation, so Apply selection, Download and Remove stayed enabled and could submit switch, download or remove on top of the turn-on. Pass ManualModels a busy flag that also covers in-flight model actions, as AutopilotModels already computes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): show a running update instead of offering the required one again On This Mac's Overview, a runtime below the supported minimum always added the "Update Darkbloom" step and kept it as the headline, even while an update operation was running. The step list then read "Updating Darkbloom · Wait for it to finish" above "Update Darkbloom · Update now", with the button disabled only because the app was busy. Treat a running update as the remedy for a required one: drop the update step while it runs, so the operation is the only step and the headline reads "Updating Darkbloom". If the update fails or is cancelled, the required update step returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): name the model and show progress in download notifications The bottom operation notification for a model download said only "Downloading model", and its outcome "Model download · Complete". The runtime already attributes a download to its model and reports progress on the operation (model and progress, set by DesktopBackend.swift), and the model's row on Models shows that progress, but the notification ignored both. Add operationTitle(), which names an attributed download by the catalog's display name (modelName, falling back to the id) and appends the rounded percentage the row shows while progress is reported. Use it for the notification and its matching failure. Unattributed downloads and every other operation keep their existing labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): tell returning users why Darkbloom can't start Startup reused onboarding's RuntimeSetup, so a returning user whose runtime was missing saw "Install Darkbloom to check this Mac.", and one whose runtime failed saw "We couldn't check this Mac." although there is no check to run. The main process also reported a runtime that answered in another protocol as a plain error, so it was described as one Darkbloom "couldn't reach" and offered a repair rather than an update. Report a protocol mismatch as the existing "incompatible" status, and give RuntimeSetup returning-user copy for each status: reinstall when missing, update when incompatible, repair when it couldn't start or connect. First-run copy is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: repair merged test ending; #1459 protocol rejection now reports incompatible (#1456 follow-up) * fix(desktop): open the link page only when the user clicks The desktop API's link action called performDeviceCodeLogin with its default automaticallyOpenBrowser: true, so starting a link from the app (onboarding, Autopilot on an unlinked Mac, Home) launched the browser the moment the code arrived, before the user had read it. Desktop account sign-in already passed false and waited for "Continue in browser". Pass false for the link action too; the app's existing link controls open the page on click. The desktop API harness now issues a pending code and checks the link page is not requested without a click. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): say Autopilot links this Mac in the browser first On an unlinked Mac, "Download & start Autopilot" and "Turn on Autopilot" first run the runtime's link action, which opens the browser at once and shows a device code. Nothing said so before the click, and the link dialog's Cancel was a small text link. Label those buttons "Link this Mac & start / turn on Autopilot" and add one line saying they'll open the link page to approve the code shown here, then Autopilot starts. Make the link panel's Cancel a secondary button (Models dialog and onboarding), tell people to open the link page and enter the code, and show the same link dialog from the manual Models page, which previously started the link without showing the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): open external links in a new tab in the browser preview In the development preview (?preview) the renderer's API is previewAPI, whose openExternal was a no-op, so "Read the guide" and every other External / openExternal link did nothing. The signed app is unaffected: packaged builds compile the preview out (isPreview needs import.meta.env.DEV) and send each target through the preload bridge to externalURL and shell.openExternal, which accepts every target the renderer uses. Move the target-to-URL map from main/security.ts to shared/externalLinks.ts so the preview opens the same destinations with window.open(url, '_blank', 'noopener'), and the device-link URL from the preview snapshot for 'link'. The main process keeps its https and host allowlist checks. The preview's device-link fixture now uses the console host the production coordinator returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): say "serving" everywhere for starting and stopping this Mac The same act had four names. Home offered "Start providing" and "Stop provider", This Mac's header "Start provider", the menu bar "Start provider" / "Restart provider" under a raw "Darkbloom — running" status, and onboarding "Start serving with Autopilot", while Updates said "Keep contributing", Settings "Keep providing in the background" and the onboarding mode choice "Contribute to Darkbloom". Converge on onboarding's verb: Start serving, Stop serving and Restart serving on Home, This Mac, Overview next steps, Updates and the menu bar; operations read "Starting to serve" / "Stop serving · Complete"; the menu bar status is Serving, Stopped, Starting…, Finishing requests or Connecting…. "Provider" stays only as the role noun (provider version, automatic provider updates, the Leaderboard's Provider column). Action ids, data fields and contract types are unchanged. The tray menu template moves into trayMenu.ts so it can be tested, and a new test renders Home, This Mac's header and the tray template and scans src for the retired wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): link the account first in onboarding, and let any step exit to the app Onboarding offered no way back to the app until its last step: "Explore the app first" sat only on the start page, so someone who landed in setup had to run the check before they could leave. Account linking ran inline from the start button, after the check. Make the steps Link your account, Check this Mac, Start. Link account requests a code, and only Open link page opens the browser; an in-progress link has a Cancel button; a linked Mac skips to the check with the first step shown as done. A start on an unlinked Mac returns to the link step instead of linking inline, then comes back to Start. Move "Explore the app first" next to the step indicator so it leaves for the app from every step once there is a snapshot. Leaving cancels a link in progress; the unmounted scan clears its timers as before. Remove the "How this Mac is used" choice from Advanced, with the onboarding-only local start method, copy and ModeChoice. Local models stay available elsewhere in the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): add Help to the sidebar and a next step to failures The app had no visible help or support. "Read the guide" only appeared during onboarding, the troubleshooting link was inside Stats' "Runtime & readiness" details, and error states said what failed but not what to do next. Add Help above the community links at the bottom of the sidebar. It opens a dialog linking the guide, the Darkbloom Slack and GitHub Discussions through the existing external-link targets, and names the app version to mention. Offer "Get help" (the guide, which covers troubleshooting) on failed or interrupted operation notifications, on the not-connected notice when the runtime is unreachable, beside Try again when sign-in fails, and after a failed runtime install or repair. Waiting states get no link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(desktop): install the backend automatically on first launch Users download the DMG, drag the app to Applications and open it. When the backend runtime (~/.darkbloom/bin/darkbloom) was missing, the app only reported "missing" and waited for a click on "Install runtime". A packaged release build now starts the bundled verified installer itself, once per launch, when the watch loop's first connection attempt finds no runtime. The signed preview, --ui-smoke-test and development (unless DARKBLOOM_DESKTOP_AUTO_INSTALL=1) never do. The automatic path and the renderer's buttons share one in-flight install, and the watch loop no longer reconnects over an install's progress. The installer's output is now streamed instead of buffered. Its step headers become plain statuses that call the runtime "the backend", since people already installed Darkbloom: "Downloading the backend… 42%", "Verifying the backend's signature…", "Setting up this Mac's identity…", "Setting up device verification…" and "Backend installed. Starting it…". Only the current line is buffered. A failure sets installFailed and keeps "Couldn't install the backend while <step>: <installer's last ✗/Error: line>" until the user retries. URL queries, credential-looking values and long tokens are removed from that line. DesktopAPI.cancelInstall() (backend:cancelInstall) stops the installer's process group, and quitting the app does the same. RuntimeSetup shows the progress and Cancel while installing, never a second Install button, and shows the failure reason with Retry. Its existing first-run wording is unchanged. scripts/install.sh is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): install the backend as onboarding's first step Onboarding opened on linking even when the backend wasn't installed: the link and check steps each swapped in the install or repair screen, so a first run started at "Link your account" and then asked to install. Make the steps Install backend, Link your account, Check this Mac, Start. Install backend stands in for every later step until the backend is connected with a snapshot. While it connects or installs it shows the main process's status message with a spinner and no button; when the backend is missing, failed or incompatible it shows the reason with Install, Repair or Update backend. The heading and lead name it the backend, since Darkbloom itself is already installed. When the backend becomes ready the install step is marked done and setup moves on to linking by itself (to the check on a linked Mac), with focus on the new step's heading. A backend that was already installed, which only connects, opens on the welcome view at step 2 as before. A reconnect with a snapshot keeps the current step; a backend that goes missing, fails or reinstalls mid-setup shows the install step and returns to the same step afterwards. "Explore the app first" still needs a snapshot, so it never appears on a first install. The link and scan steps no longer handle a missing runtime themselves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: align #1487 Home tests with #1501 serving wording * Integration: first-run cold launch opens #1502's install step #1456's cold-launch test expected first-run onboarding to open on the welcome view before the first snapshot; with #1502 it opens on Install backend, showing the connection status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: #1503 help test uses #1502's Install backend label Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: #1504 RuntimeSetup tests follow #1502's install step Installing and a failed install keep #1502's Install backend heading, and the failure reason uses the step's single status region; a failed install offers #1503's Get help. Cover Retry on the returning-user Startup screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: add #1504's cancelInstall to #1479's page-title bridge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: separate unioned CHANGELOG entries with blank lines Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): show the pending link code large, with Copy code This Mac's "Finish linking this Mac" step quoted the code inside a sentence ("Enter code ABCD-1234 in your browser…"), which was easy to miss and awkward to read off while typing it on the link page. Show the code on its own, large and letter-spaced, with a Copy code button, and keep the sentence for what it's for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): install the CLI only on click, and call it the CLI The desktop app is CLI-centric: it is a front end to the Darkbloom CLI, which runs the background service that serves models on this Mac. After dragging the app from the DMG and opening it, the user starts the CLI install themselves from the "Install the Darkbloom CLI" screen. The app never installs anything by itself. Remove the automatic install: Backend.watch() no longer starts the installer when the CLI is missing, and the autoInstallEnabled gating, the Backend constructor's installer argument and DARKBLOOM_DESKTOP_AUTO_INSTALL are gone. A missing CLI is only reported as missing; the Install CLI, Repair CLI, Update CLI and Retry buttons call api.install() as before. Progress, failures and cancel are unchanged: one in-flight install that repeated clicks join, streamed plain-language progress, installFailed with the failing step and the installer's sanitized reason, cancel that stops the installer's process group (also on quit), and a watch loop that does not reconnect over an install. User-facing text now says "the CLI": "Installing the Darkbloom CLI…", "Downloading the CLI… 42%", "Verifying the CLI's signature…", "CLI installed. Starting it…", "Couldn't install the CLI while <step>: <reason>" and "CLI install cancelled.". RuntimeSetup's heading is "Install the Darkbloom CLI" with the CLI lead and Install/Repair/Update CLI buttons. Darkbloom no longer accepts new providers on macOS 26 or earlier, so the install progress drops the pre-macOS 27 "finish device verification in System Settings" step; blocking those Macs before install is a separate change. Tests: the automatic-install tests become "never installs without a click" (a missing CLI stays missing and no child is spawned across reconnect attempts) and a click-to-install test; failure, cancel and single-flight tests are kept with the new wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): name onboarding's first step Install the Darkbloom CLI The desktop app is CLI-centric: it is a front end to the Darkbloom CLI, which runs the background service that serves models on this Mac. After dragging the app from the DMG and opening it, the first onboarding screen is "Install the Darkbloom CLI", and the user starts the install from it with "Install CLI". The app never installs by itself. Rename the step from "Install backend": the page heading is "Install the Darkbloom CLI" with the lead "Darkbloom runs on its command-line tool. It installs once, runs a background service that serves models on this Mac, and updates automatically.", and the step indicator says "Install CLI" so the four labels stay readable at narrow widths. The buttons are Install CLI, Repair CLI and Update CLI, and the waiting texts are "Installing the Darkbloom CLI…" and "Connecting to the Darkbloom CLI…". Behavior is unchanged: the step offers a button only for a missing, broken or incompatible CLI, and install() runs only from that click. Progress, failures and cancel come from the main process as before. Tests add "never starts an install without a click" and use the new wording; the docs' Onboarding section and the #1502 CHANGELOG entry say the install starts only on click. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): check this Mac before linking an account in onboarding Product decision: the Mac is checked before an account is connected, so nobody links an account for a Mac Darkbloom can't use. The steps are now Install the Darkbloom CLI, Check this Mac, Link your account, Start. The CLI install still starts only when the user clicks Install CLI on the first screen; its progress, failures and cancel are unchanged. Once the CLI is ready (or from Start on the welcome view) setup runs the check. An ineligible Mac stops there with its reasons and the waitlist and is never asked to link. An eligible Mac, or an unconfirmed one the user continues past, goes on to Link your account: the code is shown, only Open link page opens the browser, and a link in progress can be cancelled. An already linked Mac skips that step, shown as done, and goes from the check straight to Start. Start on an unlinked Mac still sends the user back to linking, then returns to Start. "Explore the app first" stays on every step once there is a snapshot. The eligible verdict's footer names what comes next ("Next: link your account" or "Next: start serving"), the welcome and link copy follow the new order, and the intro grid stays joined from a passed check through linking to Start. Tests cover the order, an ineligible Mac never reaching linking, the linked skip after the check, back-to-link from Start, and leaving from every step; the preview's ineligible scenario no longer links first. The docs' Onboarding section and the CHANGELOG entry describe the new order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: call the incompatible install the Darkbloom CLI The incompatible-protocol status from the protocol gate is shown on the CLI setup screen next to Update CLI; word it as the CLI, and do the same in the help changelog entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): require macOS 27 to join and prompt older Macs to update Darkbloom no longer accepts new providers on macOS 26 or earlier, and the installer now refuses new installs there (#1505), but the app still offered Install CLI and passed the Mac in Check this Mac. The main process now reports the macOS version (app:system) and opens System Settings' Software Update pane at a fixed URL (app:software-update); the openExternal allowlist is unchanged. supportsNewProviders() treats an unknown version as supported. - Install the Darkbloom CLI: when the CLI is missing below macOS 27, show "Darkbloom needs macOS 27 or later" with Open Software Update instead of Install CLI. A Mac that already has the CLI carries on. - Check this Mac: add a macos check when the report has none; an ineligible result for that reason offers Open Software Update. - Existing installs below 27: an advisory Update macOS next step on This Mac (a new software-update step action) and a Home notice dismissible for the session. Neither changes the readiness tone; the coordinator decides whether the Mac still serves. - Rename This Mac's readiness wording from "runtime" to "CLI". - Preview: ?preview&macos=26.5 overrides the reported version (27.0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): keep the link code on one line At narrow widths the link panel's code could wrap at its hyphen ("BLOOM-" / "7Q4K"), which is easy to mistype. Keep it on one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): keep This Mac's link code on one line The large link code on the Finish linking step could wrap at its hyphen in a narrow column. Keep it on one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): space Get help from the install action After a failed install, Get help sat almost against the full-width Install/Repair button. Give it its own spacing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): make Home's Mac cards read as controls and offer Start on a stopped This Mac Each Mac under "Your Macs" on Home is a button that opens its overview in My Macs, but it looked like a static table row: no chevron, no press or focus treatment, and a stopped This Mac showed only "Stopped" with no way forward from the card. Add a trailing chevron with hover, press and inset focus styles. When This Mac is stopped, show a "Start providing" call to action under its card that runs Home's header start action (open Models). It sits beside the open button rather than inside it. While This Mac serves, the card keeps its live status and shows no call to action, and view-only Macs never show it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Integration: test doubles gain system/openSoftwareUpdate (#1506); Home has two Start serving buttons (#1507); serving wording in #1506 tests * Preview: install a missing CLI with the verified installer (never update or repair) * Integration: preview tests use their own HOME with an installed CLI * fix(desktop): let a signed preview install a missing CLI A preview's bundled desktop API attaches to the installed CLI and can't start without it, so on a Mac with no CLI the preview reported a broken API ("Repair CLI") and refused Install CLI ("Rebuild the local preview"). That made the first-run flow impossible to review from scratch. Report the installed CLI as missing so setup offers Install CLI, and let that click run the same verified production installer a release uses. A preview still never updates or repairs an existing CLI. Preview tests now use their own HOME with an installed CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): add Copy code next to the link code The link panel (onboarding's Link your account step and the Autopilot link dialog) showed the code with only Open link page. Add a Copy code button beside the code, with a Copied confirmation, like desktop sign-in. Copying never opens the browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): start Autopilot only with Darkbloom network models The desktop model list is the catalog plus every model the scan finds on disk, and models found only on disk were reported eligible. Onboarding's starting model (first eligible downloaded, by id) could therefore be a local Hugging Face copy such as mlx-community/gemma-4-26B-A4B-it-qat-4bit or a legacy prism-ml Bonsai snapshot. `start --autopilot` requires every startup model to be in the verified network inventory, so it failed with "could not all be verified" while printing only "Verifying ternary-bonsai-2-27b..." - the one network model on disk, which passed. - Snapshot models now report `network` (listed by the catalog). - servesNetwork() gates the starting model, onboarding pins for network starts, turning Autopilot on and the Autopilot pool. Disk-only models stay pinnable for Local only and explain why otherwise. - The CLI names the startup models missing from the inventory instead of blaming verification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(desktop): report an unverifiable runtime as an error, not missing connect() maps ENOENT to "missing" (runtime not installed). When the packaged signature check can't run because codesign itself is absent, as on the Linux CI runner, its ENOENT was reported as a missing install. The binary already resolved through realpath, so any verification failure means an untrusted runtime: surface it as an error…
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The app used four names for putting this Mac to work: providing, provider, serving and contributing. Home offered Start providing next to Stop provider. This Mac said Start provider, the menu bar said Start provider under a raw Darkbloom — running, and onboarding said Start serving with Autopilot.
The app now uses onboarding's verb everywhere. Buttons say Start serving, Stop serving and Restart serving, including in the menu bar. Statuses are Serving, Stopped, Starting… and Finishing requests. Provider is kept only as the role noun, as in the docs and console: provider version, automatic provider updates, the Leaderboard's Provider column. Action ids (
start,stop,restart), data fields, CSS classes and contract types are unchanged.Found in a team review of the desktop app (note 5: “The start and stop wording is inconsistent”). Base:
codex/desktop-mac-preview-20261012(unmerged desktop stack: #1354 plus the signed preview packaging commits). The diff contains only this fix. The Desktop / frontend check on this base also needs #1455.Before / After
flowchart LR subgraph Before["Before"] direction TB B1(["Put this Mac to work / stop it"]):::user --> B2["Home · This Mac · menu bar ·<br/>Overview · Updates · Settings · onboarding"]:::code B2 --> B3(["Start providing · Stop provider · Start provider ·<br/>Keep contributing · Start serving · 'running'"]):::bad end subgraph After["After"] direction TB A1(["Put this Mac to work / stop it"]):::user --> A2["one verb: serving<br/>trayStatus() · trayMenuTemplate()"]:::fix A2 --> A3(["Start serving · Stop serving · Restart serving ·<br/>Serving / Stopped / Starting… / Finishing requests"]):::good end classDef user fill:#1f2937,stroke:#93c5fd,color:#f9fafb classDef code fill:#312e81,stroke:#a5b4fc,color:#eef2ff classDef bad fill:#7f1d1d,stroke:#fca5a5,color:#fef2f2 classDef fix fill:#065f46,stroke:#6ee7b7,color:#ecfdf5 classDef good fill:#14532d,stroke:#86efac,color:#f0fdf4Legend: blue = user action, indigo = unchanged surfaces, red = defect, green = changed code / fixed outcome.
Inventory
Every user-visible string in
desktop-app/srcat the base commit that names starting or stopping this Mac, or its status. Line numbers are frombfa75a2c.Changed (the table above):
main/tray.ts:16,19tooltip and status${model.status}(raw state);:26Start provider;:36Stop provider;:43Restart provider. Alsomain/trayMenu.ts:20status: state?.state || 'Connecting'.renderer/features/Home.tsx:33Stop provider/Start providing.renderer/features/machines/MachineHeader.tsx:46Stop provider;:49Start provider;:52titleRestart provider;:53aria-labelRestart.renderer/components/operations/labels.ts:4-6Provider start/Starting provider,Provider stop/Stopping provider,Provider restart/Restarting provider. These are shown in the operation feed, the Overview status and the Overview steps.renderer/features/machines/overview/readinessSteps.ts:10Restart provider;:63,69Start providing;:77…then start providing.;:110The provider takes no new requests while it drains.;:119Starting the provider;:120Requests are served once it connects.;:129,181Restart the provider;:130The provider is running but its status is out of date….renderer/features/models/ManualModels.tsx:69Start providing.renderer/features/insights/LiveModels.tsx:95Start providing to see your models working.renderer/features/Updates.tsx:65Stay current. Keep contributing.;:93…on the next provider restart.;:97Saved. Restart the provider to apply.;:104Restart provider;:137Your provider keeps running.renderer/features/Settings.tsx:109Keep providing in the background;:110…keeps the menu bar and provider available.renderer/features/settings/IdleMemory.tsx:33Apply changes by restarting the provider.renderer/features/cooling/CoolingControls.tsx:18Provider cooling;:47Only while the provider is active.renderer/features/Cooling.tsx:32…when the provider stops.renderer/features/machines/overview/MemoryHealth.tsx:43Reported while the provider runs.renderer/features/home/chip/stageText.ts:20Provider stopped;:21Provider starting;:61…: provider starting|stopped.renderer/components/onboarding/ModeChoice.tsx:6Contribute to Darkbloom.renderer/components/onboarding/RuntimeSetup.tsx:23Your provider works independently of this window.renderer/features/Studio.tsx:55Reuse models while contributing to Darkbloom.renderer/features/Leaderboard.tsx:46Top contributors.renderer/components/onboarding/useStartServing.ts:15: a code comment, Contributing needs a linked account. Changed so the source scan holds without exceptions.Already consistent, unchanged:
StartServing.tsx:20,25Start serving with Autopilot/Start serving,:39,84;ScanFooter.tsx:38Next: start serving;LinkPanel.tsx:15;AdvancedOptions.tsx:18;useStartServing.ts:32.AutopilotModels.tsx:84Start serving;ManualModels.tsx:17filterServing,:169selected for serving;PoolRow.tsx:150Stop serving this model before removing it;pool.ts:136.readiness.ts:45Serving status unavailable,:83-84Not serving (new) requests,Ready to serve. AlsoMachineHeader.tsx:48Finishing requests,presentation/status.tsFinishing requests/Stopped/Starting.Kept as the role noun. These name the provider role or account concept used in the docs and console, not the act:
updates/RuntimeVersion.tsx:41Installed provider version;updates/AutoUpdateSwitch.tsx:19,25Automatic provider updates;overview/RemoteStats.tsx:46,68Earnings and provider/Provider version.Leaderboard.tsx:63,65Provider rankings/ columnProvider;leaderboard/NetworkMap.tsx:38,62…provider regions;previewResources.tsrelease notes.Kept, with reasons:
Home.tsx:26,ContributionMetrics.tsx:16). Both are nouns heading the session metrics (tokens processed, requests served, generated this session). Neither is offered as an action, so they don't compete with Start serving. The competing contributing verbs (Updates, Studio, the onboarding mode choice) were renamed.presentation/status.tsOnline forrunning/online/serving. This is the fleet connectivity status of a Mac in My Macs and Home's Mac list, as reported by the coordinator. It is not this Mac's start/stop state.preview.ts:54readinessProvider stopped. This preview fixture mirrors the nativereadinesstext, which Overview doesn't render: it showsassessReadiness, Stopped.Changes
main/trayMenu.ts:trayStatus(state)maps runtime state to Serving, Stopped, Starting…, Finishing requests, Status unavailable (stale, matching Overview) or Connecting….trayMenuTemplate(model, actions)builds the menu without Electron, so it can be tested.main/tray.tspasses the same click handlers as before.features/Home.tsx,machines/MachineHeader.tsx,operations/labels.ts,overview/readinessSteps.ts,models/ManualModels.tsx,insights/LiveModels.tsx,Updates.tsx,Settings.tsx,settings/IdleMemory.tsx,Cooling.tsx,cooling/CoolingControls.tsx,overview/MemoryHealth.tsx,home/chip/stageText.ts,onboarding/ModeChoice.tsx,onboarding/RuntimeSetup.tsx,Studio.tsx,Leaderboard.tsx: the copy in the table. No behaviour changes.tests/servingVocabulary.test.tsx(new):desktop-app/srcthat rejects start/stop/restart (the) provider, starting/stopping/restarting provider, providing and contribute/contributing.All 5 tests fail on the base branch; the source scan finds 27 lines.
Updated tests that asserted the old strings:
trayMenu,readiness,overview,machines,app,updateControls,idleMemory,chipStage,chipStageText. Inappandmachines, the negativequeryByRole('Stop provider' | 'Restart')checks now look for the new names, so they can't pass vacuously.Docs:
docs/developer/desktop-app.mddescribes the vocabulary, the Updates Restart serving button and the tray row.docs/design/macos-electron-app.mdrenames the lifecycle rows Stop serving / Restart serving. Last updated is 2026-10-14 in both.CHANGELOG.md: Unreleased entry.Validation
Limitations
Overlapping open PRs, checked with
git merge-treeagainst this branch:fix(desktop): match Home's provider button and chip summary to transitional states #1487 (
fix/desktop-home-transitional-states): conflicts inHome.tsx,home/chip/stageText.tsandCHANGELOG.md. Whichever lands second should:stoppable/transitionlogic and this PR's words:Stop serving,Starting…(instead of Starting provider),Finishing requests,Start serving;stageText.ts, keep fix(desktop): match Home's provider button and chip summary to transitional states #1487'sactivity/numberssplit and this PR's unpowered summary (not serving / starting to serve), and drop the provider prefix from fix(desktop): match Home's provider button and chip summary to transitional states #1487's new reasons (status out of date, finishing current requests);homeProviderAction.test.tsxandchipStageText.test.tsto match.If fix(desktop): match Home's provider button and chip summary to transitional states #1487's wording is kept,
servingVocabulary.test.tsxfails. I tried this resolution in a scratch merge: tsc passed and the 4 affected test files passed (23 tests).fix(desktop): show returning users a connecting state on cold launch #1456 (
fix/desktop-cold-launch-connecting): conflicts inonboarding/RuntimeSetup.tsxandCHANGELOG.md. Take fix(desktop): show returning users a connecting state on cold launch #1456's copy table and change its first-runleadfrom Your provider works independently of this window. to Serving continues when this window is closed. I tried this in a scratch merge: tsc passed, andcoldLaunch,servingVocabulary,onboardingandonboardingScanpassed (33 tests). PRs stacked on fix(desktop): show returning users a connecting state on cold launch #1456 that move this copy word for word carry the same line.fix(desktop): plain-language copy for settings and models kept in memory #1477 (
fix/desktop-plain-copy) andfix/desktop-model-action-guards: only theCHANGELOG.mdheading conflicts. Keep both entries. Neither branch adds retired wording.Stopping serving and Restarting serving (operation progress) were chosen to keep the verb visible next to the buttons, at some cost in elegance.
jsdom only. The native tray menu wasn't opened in the installed preview, to avoid restarting the user's running app.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.